package com.xmut.rc.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 车辆信息表
 * </p>
 *
 * @author 小宋
 * @since 2022-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("rc_car_info")
@ApiModel(value="CarInfo对象", description="车辆信息表")
public class CarInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "车主")
    private String userId;

    @ApiModelProperty(value = "车牌号")
    private String code;

    @ApiModelProperty(value = "车型")
    private String type;

    @ApiModelProperty(value = "车座")
    private Integer seat;

    @ApiModelProperty(value = "车品牌")
    private String brand;

    @ApiModelProperty(value = "变速箱")
    private String gear;

    @ApiModelProperty(value = "油箱排量")
    private Float tank;

    @ApiModelProperty(value = "排量")
    private Float displacement;

    @ApiModelProperty(value = "车配置")
    private String config;

    @ApiModelProperty(value = "车图片")
    private String imgs;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态")
    private String status;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建日期")
    private Date gmtCreate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新日期")
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Integer isDelete;


}
